<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<title>
			Document
		</title>
		<hdjs/>
	</head>
	<body>
		<div class="wrap">
			<div class="menu_list">
				<ul>
					<li>
						<a href="{|U:'index'}"  class="action">
							栏目列表
						</a>
					</li>
					<li>
						<a href="{|U:'add'}">
							添加栏目
						</a>
					</li>
				</ul>
			</div>
			<table class="table2">
				<thead>
				<tr>
					<td class="w80">CID</td>
					<td>栏目名称</td>
					<td>类型</td>
					<td class="w200">操作</td>
				</tr>
				</thead>
				<list from='$categories' name='d'>
					<tr>
						<td>{$d.cid}</td>
						<td>{$d._name}</td>
						<td><if value="$d['cattype'] eq 1">封面<else>普通</if></td>
						<td>
							<a href="{|U:'add',array('pid'=>$d['cid'],'gtid'=>$d['gtid'])}">添加子栏目</a> |
							<a href="{|U:'edit',array('cid'=>$d['cid'],'gtid'=>$d['gtid'])}">修改</a> |
							<a href="{|U:'del',array('cid'=>$d['cid'])}">删除</a> |
							<a href="{|U:'edit',array('gtid'=>$d['gtid'])}">访问</a>
						</td>
					</tr>
				</list>
			</table>
		</div>
	</body>
</html>





